<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Controller</title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <style type="text/css">
        #output {width: 100%;}
        #cmd {width: 60%}
    </style>
</head>
<body>
<p>Hello, {{ name }}</p>
<input type="text" id='cmd' value="uptime"> <input type="button" id='submit' value="submit">
<br/>
<textarea rows="40" cols="150" id='output'>
</textarea>
<script type="text/javascript">
    var f_lorder = function loader(){
        cmd = $('#cmd').val();
        $.post('/xiaomei', {'cmd':cmd}, function(data){
            $('#output').val(data);
        });
    }
    $('#submit').click(f_lorder);
    f_lorder();
</script>
</body>
</html>